package JDKdynamicProxy;

/**
 * @Author:zimmor
 * @Date: 2021/3/25 9:42
 * @Description
 * @version: 1.0.0
 */

public class Buyer2 implements Subject {
    public void buybuybuy() {
        System.out.println("买一个美版的AK");
    }

    public String getName() {
        return "小何";
    }

    public String getAge(String name) {
        return "小何".equals(name)?"23":"不是小何";
    }
}
